package com.study.seckill.service;

import com.study.dto.CourseDTO;
import com.study.seckill.service.impl.CourseServiceImpl;
import com.study.util.ResponseResult;
import com.study.vo.CourseInfoVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.math.BigInteger;

/**
 * @ClassName: CourseService
 * @Author: wYin
 * @Date: 2022/3/10 17:35
 */
@FeignClient(value = "service-edu",fallback = CourseServiceImpl.class)
public interface CourseService {
    //todo 修改接口
    @GetMapping("/edu/course/getById/{id}")
    public ResponseResult<CourseInfoVO> getById(@PathVariable("id")String id);

    @PutMapping("/edu/course/updateBuyCount/{id}")
    public ResponseResult<Void> updateCourseBuyCount(@PathVariable("id")String id);


}
